package com.module.framework.domain;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author JiHuiQin
 * @Date 2022/3/2 19:49
 * @Version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
public class User {
    //主键
    private Long id;
    //用户名
    private String userName;
    //角色id
    private Long roleId;
    @TableField(exist = false)
    private String roleName;
    //昵称
    private String nickName;
    //密码
    private String password;
    //邮箱
    private String email;
    //手机号
    private String phoneNumber;
    //借书数量
    private Integer lendNumber;
    // 逾期图书树
    private Integer ban;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //删除标志（0代表未删除，1代表已删除）
    private Integer delFlag;

}

